package org.example.y24.m12;

import java.time.LocalTime;

public class Time {
    private static LocalTime[] segmentStarts = new LocalTime[12];

    public Time() {
        segmentStarts[0] = LocalTime.of(0, 0, 0);

        segmentStarts[1] = LocalTime.of(8, 0, 0);//第一节上课
        segmentStarts[2] = LocalTime.of(9, 40, 0);//第一节课下课

        segmentStarts[3] = LocalTime.of(10, 0, 0);//第二节上课
        segmentStarts[4] = LocalTime.of(11, 40, 0);//第二节课下课

        segmentStarts[5] = LocalTime.of(13, 30, 0);//第三节上课
        segmentStarts[6] = LocalTime.of(15, 10, 0);//第三节课下课

        segmentStarts[7] = LocalTime.of(15, 20, 0);//第四节上课
        segmentStarts[8] = LocalTime.of(17, 0, 0);//第四节课下课

        segmentStarts[9] = LocalTime.of(19, 0, 0);//晚自习上课
        segmentStarts[10] = LocalTime.of(20,30 , 0);//晚自习下课

        segmentStarts[11] = LocalTime.of(23,59 , 59);
    }

    public static LocalTime[] getSegmentStarts() {
        return segmentStarts;
    }

    public static void setSegmentStarts(LocalTime[] segmentStarts) {
        Time.segmentStarts = segmentStarts;
    }
}
